Optimal. Leaf size=86 \[ -\frac {1}{6 x^3}-\frac {x \left (9 x^2+5\right )}{16 \left (x^4+3 x^2+2\right )^2}+\frac {x \left (571 x^2+951\right )}{64 \left (x^4+3 x^2+2\right )}+\frac {17}{8 x}-\frac {113}{8} \tan ^{-1}(x)+\frac {1611 \tan ^{-1}\left (\frac {x}{\sqrt {2}}\right )}{64 \sqrt {2}} \]
________________________________________________________________________________________
Rubi [A] time = 0.12, antiderivative size = 86, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 3, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.097, Rules used = {1669, 1664, 203} \begin {gather*} -\frac {x \left (9 x^2+5\right )}{16 \left (x^4+3 x^2+2\right )^2}+\frac {x \left (571 x^2+951\right )}{64 \left (x^4+3 x^2+2\right )}-\frac {1}{6 x^3}+\frac {17}{8 x}-\frac {113}{8} \tan ^{-1}(x)+\frac {1611 \tan ^{-1}\left (\frac {x}{\sqrt {2}}\right )}{64 \sqrt {2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 1664
Rule 1669
Rubi steps
\begin {align*} \int \frac {4+x^2+3 x^4+5 x^6}{x^4 \left (2+3 x^2+x^4\right )^3} \, dx &=-\frac {x \left (5+9 x^2\right )}{16 \left (2+3 x^2+x^4\right )^2}-\frac {1}{8} \int \frac {-16+20 x^2-\frac {73 x^4}{2}+\frac {45 x^6}{2}}{x^4 \left (2+3 x^2+x^4\right )^2} \, dx\\ &=-\frac {x \left (5+9 x^2\right )}{16 \left (2+3 x^2+x^4\right )^2}+\frac {x \left (951+571 x^2\right )}{64 \left (2+3 x^2+x^4\right )}+\frac {1}{32} \int \frac {32-88 x^2-\frac {573 x^4}{2}+\frac {571 x^6}{2}}{x^4 \left (2+3 x^2+x^4\right )} \, dx\\ &=-\frac {x \left (5+9 x^2\right )}{16 \left (2+3 x^2+x^4\right )^2}+\frac {x \left (951+571 x^2\right )}{64 \left (2+3 x^2+x^4\right )}+\frac {1}{32} \int \left (\frac {16}{x^4}-\frac {68}{x^2}-\frac {452}{1+x^2}+\frac {1611}{2 \left (2+x^2\right )}\right ) \, dx\\ &=-\frac {1}{6 x^3}+\frac {17}{8 x}-\frac {x \left (5+9 x^2\right )}{16 \left (2+3 x^2+x^4\right )^2}+\frac {x \left (951+571 x^2\right )}{64 \left (2+3 x^2+x^4\right )}-\frac {113}{8} \int \frac {1}{1+x^2} \, dx+\frac {1611}{64} \int \frac {1}{2+x^2} \, dx\\ &=-\frac {1}{6 x^3}+\frac {17}{8 x}-\frac {x \left (5+9 x^2\right )}{16 \left (2+3 x^2+x^4\right )^2}+\frac {x \left (951+571 x^2\right )}{64 \left (2+3 x^2+x^4\right )}-\frac {113}{8} \tan ^{-1}(x)+\frac {1611 \tan ^{-1}\left (\frac {x}{\sqrt {2}}\right )}{64 \sqrt {2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 78, normalized size = 0.91 \begin {gather*} \frac {1}{384} \left (-\frac {64}{x^3}-\frac {24 x \left (9 x^2+5\right )}{\left (x^4+3 x^2+2\right )^2}+\frac {6 x \left (571 x^2+951\right )}{x^4+3 x^2+2}+\frac {816}{x}-5424 \tan ^{-1}(x)+4833 \sqrt {2} \tan ^{-1}\left (\frac {x}{\sqrt {2}}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {4+x^2+3 x^4+5 x^6}{x^4 \left (2+3 x^2+x^4\right )^3} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.96, size = 119, normalized size = 1.38 \begin {gather*} \frac {4242 \, x^{10} + 20816 \, x^{8} + 33978 \, x^{6} + 20252 \, x^{4} + 4833 \, \sqrt {2} {\left (x^{11} + 6 \, x^{9} + 13 \, x^{7} + 12 \, x^{5} + 4 \, x^{3}\right )} \arctan \left (\frac {1}{2} \, \sqrt {2} x\right ) + 2496 \, x^{2} - 5424 \, {\left (x^{11} + 6 \, x^{9} + 13 \, x^{7} + 12 \, x^{5} + 4 \, x^{3}\right )} \arctan \relax (x) - 256}{384 \, {\left (x^{11} + 6 \, x^{9} + 13 \, x^{7} + 12 \, x^{5} + 4 \, x^{3}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.36, size = 62, normalized size = 0.72 \begin {gather*} \frac {1611}{128} \, \sqrt {2} \arctan \left (\frac {1}{2} \, \sqrt {2} x\right ) + \frac {571 \, x^{7} + 2664 \, x^{5} + 3959 \, x^{3} + 1882 \, x}{64 \, {\left (x^{4} + 3 \, x^{2} + 2\right )}^{2}} + \frac {51 \, x^{2} - 4}{24 \, x^{3}} - \frac {113}{8} \, \arctan \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 64, normalized size = 0.74 \begin {gather*} -\frac {113 \arctan \relax (x )}{8}+\frac {1611 \sqrt {2}\, \arctan \left (\frac {\sqrt {2}\, x}{2}\right )}{128}+\frac {17}{8 x}-\frac {1}{6 x^{3}}-\frac {-\frac {39}{8} x^{3}-\frac {41}{8} x}{\left (x^{2}+1\right )^{2}}+\frac {\frac {259}{8} x^{3}+\frac {285}{4} x}{8 \left (x^{2}+2\right )^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.53, size = 72, normalized size = 0.84 \begin {gather*} \frac {1611}{128} \, \sqrt {2} \arctan \left (\frac {1}{2} \, \sqrt {2} x\right ) + \frac {2121 \, x^{10} + 10408 \, x^{8} + 16989 \, x^{6} + 10126 \, x^{4} + 1248 \, x^{2} - 128}{192 \, {\left (x^{11} + 6 \, x^{9} + 13 \, x^{7} + 12 \, x^{5} + 4 \, x^{3}\right )}} - \frac {113}{8} \, \arctan \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.92, size = 71, normalized size = 0.83 \begin {gather*} \frac {\frac {707\,x^{10}}{64}+\frac {1301\,x^8}{24}+\frac {5663\,x^6}{64}+\frac {5063\,x^4}{96}+\frac {13\,x^2}{2}-\frac {2}{3}}{x^{11}+6\,x^9+13\,x^7+12\,x^5+4\,x^3}-\frac {113\,\mathrm {atan}\relax (x)}{8}+\frac {1611\,\sqrt {2}\,\mathrm {atan}\left (\frac {\sqrt {2}\,x}{2}\right )}{128} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.29, size = 76, normalized size = 0.88 \begin {gather*} - \frac {113 \operatorname {atan}{\relax (x )}}{8} + \frac {1611 \sqrt {2} \operatorname {atan}{\left (\frac {\sqrt {2} x}{2} \right )}}{128} + \frac {2121 x^{10} + 10408 x^{8} + 16989 x^{6} + 10126 x^{4} + 1248 x^{2} - 128}{192 x^{11} + 1152 x^{9} + 2496 x^{7} + 2304 x^{5} + 768 x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________